using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using MCWEBSITE.BUL;
using MCWEBSITE.ENTITY;

public partial class Modules_DVPJSC_wucDVPNewsDetail : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            int NewsID = 0;
            if (Request.QueryString["NewsID"] != null)
            {
                NewsID = Convert.ToInt32(Request.QueryString["NewsID"].ToString());
            }
            this.fillData(NewsID);
        }
    }
    protected void fillData(int NewsID)
    {
        websiteNewsInfo objwebsiteNewsInfo = new websiteNewsInfo();
        objwebsiteNewsInfo = websiteNewsBUL.Load(NewsID);
        lblTitle.Text = objwebsiteNewsInfo.Tittle;
        lblSummary.Text = objwebsiteNewsInfo.Summary;
        lblContent.Text = (string)objwebsiteNewsInfo.NewsContent;
    }
}
